package chapter01

/**
 *
 * @author cdhuangchao3
 * @date 2023/6/3 7:31 PM
 */
class Student(name: String, age: Int) {
  def printInfo(): Unit = {
    println("name" + " " + age + " " + Student.school)
  }
}

object Student {
  val school: String = "at"

  def main(args: Array[String]): Unit = {
    new Student("zs", 12).printInfo()
  }
}
